<?php
class Wee_Logging_Block_Adminhtml_Details_Renderer_Sourcename extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract{
    public function render(Varien_Object $row){
        $data = $row -> getData($this -> getColumn() -> getIndex());
        if (!$data){
            return '';
        }
        $html = '
' . $row -> getSourceName() . '';
        if ($row -> getSourceId()){
            $html .= ' #' . $row -> getSourceId() . '';
        }
        return $html;
    }
}